<form name="frmGoto" class="form-horizontal" ng-init="dvm.init()" ng-submit="dvm.gotoLine(frmGoto.$valid)" novalidate>
  <div class="modal-header">
    <button type="button" class="close" ng-click="dvm.cancel()">&times;</button>
    <h4 class="modal-title">跳转行号</h4>
  </div>
  <div class="modal-body">
    <div class="form-group">
      <div class="col-sm-12">
        <p>请输入行号（1..{{dvm.maxLine}}）</p>
        <input type="number" class="form-control" min="1" max="{{dvm.maxLine}}" ng-model="dvm.line" required autofocus>
      </div>
    </div>
  </div>
  <div class="modal-footer">
    <button type="submit" class="btn btn-primary" ng-disabled="frmGoto.$invalid">确定</button>
  </div>
</form>
